{checkActionsTpl location="tpl_pligg_profile_start"}



{checkActionsTpl location="tpl_user_center_just_below_header"}



{if $user_view eq 'search'}

<div id="navbar"> {if $Allow_Friends neq "0"}

  <div id="search_users">

    <form action="{$my_pligg_base}/user.php" method="get"

		{php}

		global $URLMethod, $my_base_url, $my_pligg_base;

		if ($URLMethod==2) print "onsubmit='document.location.href=\"{$my_base_url}{$my_pligg_base}/user/search/\"+encodeURIComponent(this.keyword.value); return false;'";

		{/php}

>

      <input type="hidden" name="view" value="search">

      {if $templatelite.get.keyword neq ""}

      {assign var=searchboxtext value=$templatelite.get.keyword|sanitize:2}

      {else}

      {assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}			

      {/if}

      <input type="text" name="keyword" class="field" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}">

      <input type="submit" value="{#PLIGG_Visual_User_Search_Users#}" class="button">

    </form>

  </div>

  {if $user_login neq $user_logged_in}

  

  {if $is_friend gt 0} <img src="{$my_pligg_base}/templates/{$the_template}/images/user_delete.gif" align="absmiddle" /> <a href="{$user_url_remove}">{#PLIGG_Visual_User_Profile_Remove_Friend#} {$user_login} {#PLIGG_Visual_User_Profile_Remove_Friend_2#}</a> {if $user_authenticated eq true}

  {checkActionsTpl location="tpl_user_center"}

  {/if} 			

  {else}

  {if $user_authenticated eq true} <img src="{$my_pligg_base}/templates/{$the_template}/images/user_add.gif" align="absmiddle" /> <a href="{$user_url_add}"> {#PLIGG_Visual_User_Profile_Add_Friend#} {$user_login} {#PLIGG_Visual_User_Profile_Add_Friend_2#}</a> {/if}   

  {/if}      		

  {else} <img src="{$my_pligg_base}/templates/{$the_template}/images/friends.png" align="absmiddle" /> <a href="{$user_url_friends}">{#PLIGG_Visual_User_Profile_View_Friends#}</a> &nbsp;|&nbsp; <img src="{$my_pligg_base}/templates/{$the_template}/images/friends2.png" align="absmiddle" /> <a href="{$user_url_friends2}">{#PLIGG_Visual_User_Profile_View_Friends_2#}</a> {/if} 

  {/if} </div>

{if $userlist}

<h2>{#PLIGG_Visual_Search_SearchResults#} '{$search}'</h2>

<table cellpadding="1" border="0">

  <tr>

    <th>{#PLIGG_Visual_Login_Username#}</th>

    <th>{#PLIGG_Visual_User_Profile_Joined#}</th>

    <th>{#PLIGG_Visual_User_Profile_Homepage#}</th>

    <th>Add/Remove</th>

  </tr>

  {section name=nr loop=$userlist}

  <tr>

    <td width="240px"><img src="{$userlist[nr].Avatar}" align="absmiddle" /> <a href="{$URL_user, $userlist[nr].user_login}">{$userlist[nr].user_login}</a></td>

    <td width="120px">{$userlist[nr].user_date}</td>

    <td width="300px" style="text-align:center;">{$userlist[nr].user_url}</td>

    <td width="80px" style="text-align:center;">{if $userlist[nr].status eq 0} <a href="{$userlist[nr].add_friend}"><img src="{$my_pligg_base}/templates/{$the_template}/images/user_add.gif" align="absmiddle" border="0" /></a> {else} <a onclick="return confirm('�Est� seguro de eliminar este contacto?');" href="{$userlist[nr].remove_friend}"><img src="{$my_pligg_base}/templates/{$the_template}/images/user_delete.gif" align="absmiddle" border="0"/></a> {/if} </td>

  </tr>

  {/section}

</table>

{else}

<h2>{#PLIGG_Visual_Search_NoResults#} '{$search}'</h2>

{/if}

	

{/if}





{if $user_view eq 'viewfriends'}

<div id="navbar"> {if $Allow_Friends neq "0"}

  {if $user_authenticated eq true}

  <div id="search_users">

    <form action="{$my_pligg_base}/user.php" method="get"

		{php}

		global $URLMethod, $my_base_url, $my_pligg_base;

		if ($URLMethod==2) print "onsubmit='document.location.href=\"{$my_base_url}{$my_pligg_base}/user/search/\"+encodeURIComponent(this.keyword.value); return false;'";

		{/php}

>

      <input type="hidden" name="view" value="search">

      <input type="text" name="keyword" class="field">

      <input type="submit" value="{#PLIGG_Visual_User_Search_Users#}" class="button">

    </form>

  </div>

  {/if} <img src="{$my_pligg_base}/templates/{$the_template}/images/friends2.png" align="absmiddle" /> <a href="{$user_url_friends2}">{#PLIGG_Visual_User_Profile_View_Friends_2#}</a> {/if} </div>

<h2>{#PLIGG_Visual_User_Profile_Your_Friends#}</h2>

{if $friends}

<table>

  <th style="width:250px;text-align:left;">{#PLIGG_Visual_User_Profile_Username#}</th>

    {if check_for_enabled_module('simple_messaging',0.6) && $is_friend}

    <th style="width:90px;text-align:left;">{#PLIGG_Visual_User_Profile_Message#}</th>

    {/if}

    <th style="width:60px;text-align:center;">{#PLIGG_Visual_User_Profile_Remove_Friend#}</th>

    {foreach from=$friends item=myfriend}

    {php}

    $this->_vars['friend_avatar'] = get_avatar('small', $this->_vars['myfriend']['user_avatar_source'], $this->_vars['myfriend']['user_login'], $this->_vars['myfriend']['user_email']);

    $this->_vars['profileURL'] = getmyurl('user2', $this->_vars['myfriend']['user_id'], 'profile');

    $this->_vars['removeURL'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_login'], 'removefriend');

    {/php}

  <tr>

    <td><img src="{$friend_avatar}" align="absmiddle" /> <a href="{$profileURL}">{$myfriend.user_login}</a></td>

    {if check_for_enabled_module('simple_messaging',0.6) && $is_friend}

    <td align="center"><a href="{$my_pligg_base}/module.php?module=simple_messaging&view=compose&return={$templatelite.server.REQUEST_URI|urlencode}&to={$myfriend.user_login}"><img src="{$my_pligg_base}/modules/simple_messaging/images/reply.png" border="0" /></a></td>

    {/if}

    <td align="center"> {if $user_view eq 'viewfriendpendientes'} <a href = "{$removeURL}"><img src="{$my_pligg_base}/templates/{$the_template}/images/join.gif" border=0></a> {/if} <a href = "{$removeURL}"><img src="{$my_pligg_base}/templates/{$the_template}/images/user_delete.gif" border=0></a></td>

  </tr>

  {/foreach}

</table>

{else} <br />

<br />

<h2 style="text-align:center;"><span style="text-transform:capitalize;">{$user_username}</span> {#PLIGG_Visual_User_Profile_No_Friends#}</h2>

{/if}

{/if}



{if $user_view eq 'setting'}

<div id="navbar" style="margin-bottom:-20px;border-bottom:0;"></div>

{checkActionsTpl location="tpl_pligg_profile_settings_start"}

<form action="{$my_pligg_base}/user_settings.php?login={$user_username}" method="post">

  {$hidden_token_user_settings}

  <div class="user_settings_template"> {if $Allow_User_Change_Templates} <strong>{#PLIGG_Visual_User_Setting_Template#}</strong>

    <select name='template'>

      

      

      

			{foreach from=$templates item=template}

			

      

      

      <option {if $template==$current_template}selected{/if}>{$template}</option>

      

      

      

			{/foreach}

			

    

    

    </select>

    {/if} <br />

    <br />

    <strong>{#PLIGG_Visual_User_Setting_Categories#}</strong> <br />

    <br />

    {foreach from=$category item=cat name="cate"}

    <!--{if $smarty.foreach.cate.iteration % 5 == 0}<br style="clear:both;">{/if}-->

    <div class="usercategory_outer">

      <div class="usercategory_checkbox">

        <input type="checkbox" name="chack[]" value="{$cat.category__auto_id}" {if !in_array($cat.category__auto_id,$user_category)} checked="checked"{/if}>

      </div>

      <div class="usercategory_name"> {$cat.category_name} </div>

    </div>

    {/foreach} </div>

  <br style="clear:both;" />

  <div class="user_settings_save">

    <input type="submit" name="submit" value="{#PLIGG_Visual_Profile_Save#}">

  </div>

</form>

{checkActionsTpl location="tpl_pligg_profile_settings_end"}

<div style="margin-top:5px;border-bottom:2px solid #DEDEDE;"> </div>

{/if}



{if $user_view eq 'viewfriends2'}

<div id="navbar"> {if $Allow_Friends neq "0"}	 

  {if $user_authenticated eq true}

  <div id="search_users">

    <form action="{$my_pligg_base}/user.php" method="get"

		{php}

		global $URLMethod, $my_base_url, $my_pligg_base;

		if ($URLMethod==2) print "onsubmit='document.location.href=\"{$my_base_url}{$my_pligg_base}/user/search/\"+encodeURIComponent(this.keyword.value); return false;'";

		{/php}

>

      <input type="hidden" name="view" value="search">

      <input type="text" name="keyword" class="field">

      <input type="submit" value="{#PLIGG_Visual_User_Search_Users#}" class="button">

    </form>

  </div>

  {/if} <img src="{$my_pligg_base}/templates/{$the_template}/images/friends.png" align="absmiddle" /> <a href="{$user_url_friends}">{#PLIGG_Visual_User_Profile_View_Friends#}</a> {/if} </div>

<h2>{#PLIGG_Visual_User_Profile_Viewing_Friends_2a#}</h2>

{if $friends}

<table>

  {if check_for_enabled_module('simple_messaging',0.6) && $is_friend}

  <th style="width:250px;text-align:left;">{#PLIGG_Visual_User_Profile_Username#}</th>

    <th style="width:60px;text-align:left;">{#PLIGG_Visual_User_Profile_Message#}</th>

    {/if}

    {foreach from=$friends item=myfriend}

    {php}

    $this->_vars['friend_avatar'] = get_avatar('small', $this->_vars['myfriend']['user_avatar_source'], $this->_vars['myfriend']['user_login'], $this->_vars['myfriend']['user_email']);

    $this->_vars['profileURL'] = getmyurl('user2', $this->_vars['myfriend']['user_id'], 'profile');

    $this->_vars['removeURL'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_login'], 'removefriend');

    

    {/php}

  <tr>

    <td><img src="{$friend_avatar}" align="absmiddle" /> <a href="{$profileURL}">{$myfriend.user_login}</a></td>

    {if check_for_enabled_module('simple_messaging',0.6) && $is_friend}

    <td><a href="{$my_pligg_base}/module.php?module=simple_messaging&view=compose&to={$myfriend.user_login}&return={$templatelite.server.REQUEST_URI|urlencode}"><img src="{$my_pligg_base}/modules/simple_messaging/images/reply.png" border="0" /></a></td>

    {/if} </tr>

  {/foreach}

</table>

{else}



 <br />

<br />

<h2 style="text-align:center;"><span style="text-transform:capitalize;">{$user_username}</span> {#PLIGG_Visual_User_Profile_No_Friends_2#}</h2>





{/if}

{/if}



{if $user_view eq 'viewfriendsoffriend' || $user_view eq 'viewfriendpendientes' || $user_view eq 'viewsearchpersonal' || $user_view eq 'recomendfriend' || $user_view eq 'viewfriendsuggest' }



{if $user_view eq 'viewsearchpersonal'}

<div id="friends" style="width:550px;">

{foreach from=$friends item=myfriend}

        {php}

        $g = $g + 1;



        {/php}

        {/foreach}

        {php}

        $this->_vars['numeroDeBusqueda'] = $g;

        {/php}

        <div align="center" style="text-align:center; color:#90B03E; font-weight:bold">{#PLIGG_Visual_Search_Results_p#}</div>

        <div align="center"> Encontramos ({$numeroDeBusqueda}) resultados de tu b&uacute;squeda &quot;{php}echo $_REQUEST['busqueda']{/php}&quot; <br />

  en los siguientes perfiles:</div>

        <fieldset>

{else}

<div id="friends" style="width:300px;">

{if $user_view eq 'recomendfriend'}

<fieldset>

<legend> Recomendado por:</legend>

<br />

{elseif $user_view eq 'viewfriendsuggest'}

                <fieldset>
{php} 
$this->_vars['suggestSubject'] = $_GET['nameS'];  
{/php}
                    <legend>Sugerir un contacto a {$suggestSubject}</legend>

{elseif $user_view eq 'removerecomend'}

                <fieldset>
                 <legend>Recomendación eliminada </legend>
                 <a href="javascript:history.back(1)" /><< volver <a />

{elseif $user_view eq 'viewfriendpendientes'}

<fieldset>

<legend>Solicitudes</legend>

{else}

<fieldset>

<legend>{#PLIGG_Visual_User_Profile_Friends#}</legend>

{/if}



       {/if}

			{if $friends}	

            	{if $user_view eq 'viewsearchpersonal'}

<table width="250px" id="friendlist">

<thead>

  <tr>

    <th scope="col" style="width:25px;"></th>

    <th scope="col"></th>

    {if $user_login eq $user_logged_in}

    <th scope="col"></th>

    {/if} </tr>

</thead>

<tbody>



{else}

<table width="250px" id="friendlist">

  <thead>

    <tr>

      <th scope="col" style="width:25px;"></th>

      <th scope="col">{#PLIGG_Visual_Login_Names#}</th>

      {checkActionsTpl location="tpl_pligg_profile_friend_th"}

      {if $user_login eq $user_logged_in}

      <th scope="col"></th>

      {/if} </tr>

  </thead>

  <tbody>

  

  {/if}
{*
inicio de sugerencia
*}
  <form name="sugerencia" method="get" action="user.php" >
        {if $user_view eq 'viewfriendsuggest'}
        {php}$this->_vars['numeroN'] = 0;{/php}
          {foreach from=$friends item=myfriend}
          {php}
$this->_vars['profileID']  = $_GET['loginS'];
            $this->_vars['friend_avatar'] = get_avatar('small', $this->_vars['myfriend']['user_avatar_source'], $this->_vars['myfriend']['user_login'], $this->_vars['myfriend']['user_email']);
            $this->_vars['profileURL'] = getmyurl('user2', $this->_vars['myfriend']['user_id'], 'profile');
$this->_vars['profileID2'] = $this->_vars['myfriend']['user_id'];
//$this->_vars['status'] = $this->_vars['myfriend']['status'];
            $this->_vars['removeURL'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_id'], 'removefriend');
            $this->_vars['confirmURL'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_id'], 'confirmfriend');
            $this->_vars['numeroM'] = 0;
          {/php}
          {foreach from=$friendsA item=myfriend2}
               {php}
          // $this->_vars['profileID2'] = $this->_vars['myfriend2']['user_id'];
//echo $this->_vars['profileURL2']." :-: ";
            $this->_vars['profileURL2'] = $this->_vars['myfriend2']['user_id'];
            $this->_vars['numeroM'] = $this->_vars['numeroM'] +1;
                {/php}
        {if $profileID2 neq $profileURL2}
      
         {if $suggestSubject eq $myfriend.user_names}
           {elseif $numeroM <= 1}
             <tr>
              <td><a href="{$profileURL}"><img width="45" height="45" src="{$friend_avatar}" style="text-decoration:none;border:0;"/></a></td>
                <td width="400"><a style="text-decoration:none; color:#90B03E; font-size:12px; font-weight:bold;" href="{$profileURL}">{$myfriend.user_names}</a></td>
           {checkActionsTpl location="tpl_pligg_profile_friend_td"}
            {if $user_login eq $user_logged_in}
                <td> {if $user_view eq 'viewfriendpendientes'} <a style="color:#90B03E; text-decoration:none;" href="{$confirmURL}"><img border="0" src="{$my_pligg_base}/templates/{$the_template}/images/join.gif" /> Aceptar solicitud </a> {/if}
              </td>
            {/if}
               {php}

                $this->_vars['numeroN'] = $this->_vars['numeroN'] +1;

               {/php}
              <td> <input type="checkbox" id="{$numeroN}" name="{$numeroN}" value="{$profileID2}" onchange="uno('nSg','{$numeroN}');" />
              </td>
             </tr>
          {/if}
          {/if}
        {/foreach}
        {/foreach}
             <input type="hidden" id="nSg2" name="nSg2" value="{$numeroN}"/>
                <input type="hidden" id="nSg" name="nSg" value="0"/>
             <input type="hidden" name="profileID" value={$profileID} />
        <input type="hidden" name="view" value="addsug"/>
               <input type="submit" value="Enviar sugerencias" style="padding:6px; width:150px; border:none; background-color:#90B03E; color:#FFFFFF; text-align:center; cursor:pointer;" />

<textarea rows="5" cols="65" name="MensajeSug" id="descripcion" ></textarea>
    </form>
{*
fin de sugerencia
*}
{else}

    {foreach from=$friends item=myfriend}
      {php}
      $this->_vars['friend_avatar'] = get_avatar('small', $this->_vars['myfriend']['user_avatar_source'], $this->_vars['myfriend']['user_login'], $this->_vars['myfriend']['user_email']);
      $this->_vars['profileURL'] = getmyurl('user2', $this->_vars['myfriend']['user_id'], 'profile');
      $this->_vars['removeURL'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_id'], 'removefriend');
      $this->_vars['confirmURL'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_id'], 'confirmfriend');

       $this->_vars['removeURLR'] = getmyurl('user_add_remove', $this->_vars['myfriend']['id'], 'removerecomend');

//$this->_vars['confirmURL2'] = getmyurl('user_add_remove', $this->_vars['myfriend']['user_id'], 'confirmfriend');
$this->_vars['status'] = $this->_vars['myfriend']['status'];
$this->_vars['rid'] = $this->_vars['myfriend']['id'];


      {/php}
       <tr>
         <td><a href="{$profileURL}"><img width="45" height="45" src="{$friend_avatar}" style="text-decoration:none;border:0;"/></a></td>
         <td width="400"><a style="text-decoration:none; color:#90B03E; font-size:12px; font-weight:bold;" href="{$profileURL}">{$myfriend.user_names}</a></td>
        {checkActionsTpl location="tpl_pligg_profile_friend_td"}
        {if $user_login eq $user_logged_in}
            <td> {if $user_view eq 'viewfriendpendientes'}
               
                {if $status eq '3'} 
                 <a style="color:#90B03E; text-decoration:none;" href="{$profileURL}"> Sugerencia <br />de contacto </a>
                {else}
                
                <a style="color:#90B03E; text-decoration:none;" href="{$confirmURL}"><img border="0" src="{$my_pligg_base}/templates/{$the_template}/images/join.gif" /> Aceptar solicitud </a>
                {/if}
                 {/if}
                 {if $user_view eq 'viewsearchpersonal'}
                 {else}

                 {if $status eq '3'}
                <a onclick="return confirm('&iquest;Est&aacute; seguro de eliminar esta sugerencia de contacto?');" href="{$removeURL}"><img width="13" height="13" src="{$my_pligg_base}/templates/{$the_template}/images/delete.gif" style=" margin-left:2px; border:0;text-decoration:none;"/></a>
                {elseif $user_view eq 'recomendfriend'}
                
                <a onclick="return confirm('&iquest;Est&aacute; seguro de eliminar esta recomendaci&oacute;n?');" href="{$removeURLR}"><img width="13" height="13" src="{$my_pligg_base}/templates/{$the_template}/images/delete.gif" style=" margin-left:2px; border:0;text-decoration:none;"/></a>
                {else}
                <a onclick="return confirm('&iquest;Est&aacute; seguro de eliminar este contacto?');" href="{$removeURL}"><img width="13" height="13" src="{$my_pligg_base}/templates/{$the_template}/images/delete.gif" style=" margin-left:2px; border:0;text-decoration:none;"/></a>
                {/if}
                 {/if}
            </td>
        {/if}
       </tr>
    {/foreach}
    {if $user_view eq 'viewfriendpendientes'}
      {foreach from=$friends2 item=myfriend2}
        {php}
          $this->_vars['friend_avatar2'] = get_avatar('small', $this->_vars['myfriend2']['user_avatar_source'], $this->_vars['myfriend']['user_login'], $this->_vars['myfriend']['user_email']);
          $this->_vars['profileURL2'] = getmyurl('user2', $this->_vars['myfriend2']['user_login'], 'profile');
          $this->_vars['removeURL2'] = getmyurl('user_add_remove', $this->_vars['myfriend2']['user_login'], 'removefriend');
          $this->_vars['confirmURL2'] = getmyurl('user_add_remove', $this->_vars['myfriend2']['user_login'], 'confirmfriend');
        {/php}
       <tr>
         <td><a href="{$profileURL2}"><img width="45" height="45" src="{$friend_avatar2}" style="text-decoration:none;border:0;"/></a></td>
         <td width="400"><a style="text-decoration:none; color:#90B03E; font-size:12px; font-weight:bold;" href="{$profileURL2}">{$myfriend2.user_names}</a></td>
        {checkActionsTpl location="tpl_pligg_profile_friend_td"}
        {if $user_login eq $user_logged_in}
            <td> {if $user_view eq 'viewfriendpendientes'} <a style="color:#90B03E; text-decoration:none;" href="{$confirmURL2}"><img border="0" src="{$my_pligg_base}/templates/{$the_template}/images/join.gif" /> Aceptar solicitud </a>
                 {/if}
                 {if $user_view eq 'viewsearchpersonal'}
                 {else} <a onclick="return confirm('&iquest;Est&aacute; seguro de eliminar este contacto?');" href="{$removeURL2}"><img width="13" height="13" src="{$my_pligg_base}/templates/{$the_template}/images/delete.gif" style=" margin-left:2px; border:0;text-decoration:none;"/></a>
                 {/if}
            </td>
        {/if}
       </tr>
       {/foreach}
    {/if}
 {/if}
 </tbody>
 </table>
{else}  



{if $user_view eq 'viewfriendpendientes'}

 <br />

<br />

<h2 style="text-align:center;"><span style="text-transform:capitalize;">{$user_names}</span> No hay solicitudes pendientes</h2>



{else}



<br />

<span style="text-transform:capitalize;">{$user_names}</span> {#PLIGG_Visual_User_Profile_No_Friends2#}







                {if $user_view eq 'recomendfriend'}

                {#PLIGG_Visual_User_Profile_No_Recomendations#}

                {/if}

            

                

			{/if}

       		{/if}

            

            

</fieldset>

</div>

{/if}









{if $user_view eq 'removefriend'} <br />

<br />

<h2 style="text-align:center;">{#PLIGG_Visual_User_Profile_Friend_Removed#} 
    <a style="color:#90B03E; font-weight:bold; text-decoration: none;" href="javascript:history.go(-1)"> << Volver</a></h2>
{/if}



{if $user_view eq 'removebuscando'} <br />

<br />

<h2 style="text-align:center;">{#PLIGG_Visual_User_Profile_Buscando_Remove#}</h2>

{/if}









{if $user_view eq 'addfriend'}

<div id="navbar"> {if $Allow_Friends neq "0"}	 

  {if $user_authenticated eq true}

  

  {/if} {/if} </div>

<br />

<br />

<h2 style="text-align:center;">{#PLIGG_Visual_User_Profile_Friend_Added#}</h2>

{/if}





{if $user_view eq 'profile'}

<div id="wrapper"> {checkActionsTpl location="tpl_pligg_profile_info_start"}

  <legend style="font-size:22px;">{$user_names}

  <!-- #PLIGG_Visual_User_PersonalData# -->

  </legend>

  <div style="position:relative;">

    <hr />

    <div style="position:absolute; right:0px; top:-30px;"> <a style="color:#000000; text-decoration:none" href="{$my_pligg_base}/module.php?module=simple_messaging&view=compose&return={$templatelite.server.REQUEST_URI|urlencode}&to={$user_login}&name={$user_names}">{#PLIGG_Visual_User_Profile_Message#}</a> <br />

      <br />

      <br />

      <div style="border-left:1px solid #666666;"> {if $user_login eq $user_logged_in}

        <input type="button" value="Editar perfil" class="log4" onclick="location='{$URL_Profile}'">

        {else}

        {/if} </div>

    </div>

  </div>

  <table width="420">

    <tr>

      <td><div id="menu1" style="padding:10px; width:100px; background-color:#90B03E; color:#FFFFFF; text-align:center; cursor:pointer;" onmousedown="mostrar1('campo1'); ocultar1('campo2'); ocultar1('campo3'); activo('menu1'); pasivo('menu2');  pasivo('menu3');">Descripci&oacute;n</div></td>

      <td><div id="menu2" style="padding:10px; width:100px; background-color:#B2B3B3; color:#FFFFFF;  text-align:center; cursor:pointer;" onmousedown="mostrar1('campo2'); ocultar1('campo1'); ocultar1('campo3'); activo('menu2');  pasivo('menu1');  pasivo('menu3');">Experiencia</div></td>

      <td><div id="menu3" style="padding:10px; width:100px; background-color:#B2B3B3; color:#FFFFFF;  text-align:center; cursor:pointer;" onmousedown="mostrar1('campo3'); ocultar1('campo1'); ocultar1('campo2'); activo('menu3');  pasivo('menu2');  pasivo('menu1');">Buscando</div></td>

    </tr>

  </table>

  <div style="width:600px;">

    <div id="campo1" style="display:block; padding:20px"> <strong style="color:#90B03E">General:</strong> {$user_descripcion} <br />

      <br />

      <strong style="color:#90B03E">Ubicaci&oacute;n:</strong> {$user_ubicacion} <br />

      <br />

      <strong style="color:#90B03E">Producto/Servicio:</strong> {$user_pservicio} </div>

    <div id="campo2" style="display:none;  padding:20px"><strong style="color:#90B03E">Reconocimientos:</strong>{$user_reconocimiento}<br />

      <br />

      <strong style="color:#90B03E">Experiencia de trabajo:</strong><br />{$user_experiencia} 

      <br />

      <strong style="color:#90B03E">Clientes:</strong><br />{$user_clientes} </div>

    <div id="campo3" style="display:none;  padding:20px">

      <!-- START SEARCH -->

      {if $user_login eq $user_logged_in}

      <div class="search1"> {if !isset($searchboxtext)}

        {assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}			

        {/if}

        <form action="" method="post" id="thisform">

          Busco:

          <input type="text" size="20" class="searchfield" name="buscando" id="buscando" value="Buscando..." />

          <input type="submit" value="Publicar" class="log3 " />

        </form>

        {else}

        {/if} <br />

        <br />

        <strong style="color:#90B03E">{$user_names} busca:</strong>

        <table width="350">

          {php}

          global $db, $current_user, $user;

          

          

          $notificaciones1 = $db->get_results("SELECT * FROM pligg_buscando WHERE ".$user->id." = id_user");

          

          echo "

          <tr>";

            

            $i = -1;

            foreach($notificaciones1 as $pepe => $v) {				

            $i = $i+1;

            echo "

          <tr>";

            echo "

            <td>";

              echo $notificaciones1[$i]->comentario;

              echo "</td>

            ";

            {/php}

            {if $user_login eq $user_logged_in}

            {php}

            echo "

            <td>";

              echo "<a href='/user.php?idb2=".$notificaciones1[$i]->id."&view=removebuscando'><img width='13' height='13' src='/templates/plantilla/images/delete.gif' style='border:0;text-decoration:none;'></a>";

              echo "</td>

            ";

            {/php}

            {else}

            {/if}

            {php}

            

            echo "</tr>

          ";

          

          };

          

          {/php}

        </table>

      </div>

      <div class="clear"></div>

      <!-- END SEARCH -->

    </div>

  </div>

  <div class="clear"> </div>

  {checkActionsTpl location="tpl_pligg_profile_info_end"}

  

  {*

  {if $user_login eq $user_logged_in}

  <div id="bookmarklet">

    <fieldset>

    <legend>{#PLIGG_Visual_User_Profile_Bookmarklet_Title#}</legend>

    <br />

    {#PLIGG_Visual_User_Profile_Bookmarklet_Title_1#} {#PLIGG_Visual_Name#}.{#PLIGG_Visual_User_Profile_Bookmarklet_Title_2#}<br />

    <br />

    <b>{#PLIGG_Visual_User_Profile_IE#}:</b> {#PLIGG_Visual_User_Profile_IE_1#} <br />

    <b>{#PLIGG_Visual_User_Profile_Firefox#}:</b> {#PLIGG_Visual_User_Profile_Firefox_1#} <br />

    <b>{#PLIGG_Visual_User_Profile_Opera#}:</b> {#PLIGG_Visual_User_Profile_Opera_1#} <br />

    <br />

    <b>{#PLIGG_Visual_User_Profile_The_Bookmarklet#}: { include file="bookmarklet.tpl" }</b>

    </fieldset>

  </div>

  {/if}

  *} </div>

{/if}



{if isset($user_page)}{$user_page}{/if}

{if isset($user_pagination)}{checkActionsTpl location="tpl_pligg_pagination_start"}{$user_pagination}{checkActionsTpl location="tpl_pligg_pagination_end"}{/if}

{checkActionsTpl location="tpl_pligg_profile_end"}